<% if ($this->pageCount) %>
    <div class="paginationControl">
    <!-- Previous page link -->
    <% if (isset($this->previous)) %>
    <a href="<% $base_url %>/<% $controller %>/<% $action %>/page/<% $this->previous %>">
        &lt; 上一页
      </a> |
    <% else %>
      <span class="disabled">&lt; 上一页</span> |
    <% /if %>

    <!-- Numbered page links -->
    <% foreach from=$this->pagesInRange item=page %>
      <% if ($page != $this->current) %>
      <a href="<% $base_url %>/<% $controller %>/<% $action %>/page/<% $page %>">
            <% $page %>
        </a> |
      <% else %>
        <% $page %> |
      <% /if %>
    <% /foreach %>

    <!-- Next page link -->
    <% if (isset($this->next)) %>
    <a href="<% $base_url %>/<% $controller %>/<% $action %>/page/<% $this->next %>">
        下一页 &gt;
      </a>
    <% else %>
      <span class="disabled">下一页 &gt;</span>
    <% /if %>
    </div>
<% /if %>